package chapter08

/**
  * @Copyright: Shanghai Definesys Company.All rights reserved.
  * @Description:
  * @author: chuhaitao
  * @since: 2019/1/8 22:33
  * @history:
  *          1.2019/1/8 created by chuhaitao
  */
object TestStaticDemo {

  def main(args: Array[String]): Unit = {
    var person=new ScalaPerson
    println(person.name)
    ScalaPerson.age=12
    println(ScalaPerson.age)
  }

}

class ScalaPerson(){
var name:String=_
}

object ScalaPerson{
var age:Int=1
}